package com.suntront.lib_db.table;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

/**
 * Created by Administrator on 2017/3/24 0024.
 */
@Entity(tableName = "NewsT")
public class NewsT {
    /**
     * id(GUid)
     * newdate（发布时间）
     * title（标题）
     * content（内容）
     */
    @PrimaryKey(autoGenerate = true)
    private int id;
    @ColumnInfo(name = "newdate")
    private String newdate;
    @ColumnInfo(name = "title")
    private String title;
    @ColumnInfo(name = "content")
    private String content;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getNewdate() {
        return newdate;
    }

    public void setNewdate(String newdate) {
        this.newdate = newdate;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
